#ifndef CONNECTREQHANDLER_H
#define CONNECTREQHANDLER_H

#include "BeginConnDestHandlerBase.h"
#include "Log.h"

class ConnectReqHandler:public BeginConnDestHandlerBase
{
public:
	ConnectReqHandler():BeginConnDestHandlerBase(){}

	~ConnectReqHandler(){}

protected:
	virtual void CreateSocketPostProcess(ClientContext&,OVERLAPPED*,SOCKET sock);

	virtual ITransHandler* GetNextHandler();

	virtual ExecuteResultCode OnExecuteError(ClientContext&,OVERLAPPED*,ExecuteResultCode);

	virtual ExecuteResultCode OnConnected(ClientContext&,OVERLAPPED*);

private:
	static log4cplus::Logger log;
};

#endif